<?php
/**
 * beimuaihui System
 * Copyright(c) 2011-2020 beimuaihui.
 * @license    http://www.gnu.org/licenses/gpl.html     This software Under GPL V3 License 
 * beimuaihui@gmail.com
 * http://code.google.com/p/beimuaihui/
 * $Id: AdminController.php 310 2011-09-18 04:55:22Z beimuaihui@gmail.com $
 */



class AdminController extends Baogg_Controller_Action {
	/**
	 * The default action - show the home page
	 */
	public function indexAction() {
		//var_dump($this->getFrontController()->getBaseUrl());

				
		$db = Baogg_Db::getDb('master');
		$pre=BAOGG_MDB_PREFIX;
		$stmt=$db->query("select * from {$pre}user;");
		
		//var_dump($stmt->fetchAll());

		//$stmt = $db->prepare("INSERT INTO server (key, value) VALUES (:key, :value)");
		

		//$stmt->bindParam('key', $key);
		//$stmt->bindParam('value', $value);
		

		//foreach ($_SERVER as $key => $value) {
		//	$stmt->execute();
		//}
	}
	public function gridAction() {
		
	}
	
	public function formAction() {
		
	}
}
